package com.netcracker.lab1.model;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: nocturne
 * Date: 10.01.13
 * Time: 11:53
 * To change this template use File | Settings | File Templates.
 */
public abstract class AbstractGenreManager {

    protected AbstractGenreManager(){};
    private static GenreManager genreManager = new GenreManager();

    public static AbstractGenreManager getInstance(String source) {
        return genreManager;
    }

    /*adding new genre*/
    public abstract Genre createGenre(Integer id, String genreName);

    /*get genre name from id*/
    public abstract Genre findGenreName(Integer id);

    /* delete genre by id */
    public abstract void deleteGenreById(Integer id);

    /* save genres from computer */
    public abstract void saveGenres(String path) throws FileNotFoundException, IOException;

    /* open library */
    public abstract void openGenres(String path) throws FileNotFoundException, IOException, ClassNotFoundException;

    /*edit genre by id*/
    public abstract void editGenre(Integer id, String genreName);

    /* get size genre */
    public abstract int getSizeGenres();








}
